package org.beetl.sql.experimental.iohao.core;

import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.experimental.iohao.mapper.annotation.Ignore;

import java.util.List;

/**
 * 内置方法 <BR>
 * create time: 2017/4/17 17:56
 *
 * @author luoyizhu
 */
public interface $Mapper<T> extends BaseMapper<T> {
    /**
     * <pre>
     *     selectIds
     *     ===
     *     select id from
     * </pre>
     *
     * @return 查询表所有id
     */
    @SqlStatement(returnType = Integer.class)
    List<Integer> selectIds();

    /**
     * @return sqlManager
     */
    @Ignore
    default SQLManager $() {
        return SqlKit.$();
    }
}
